<?php

namespace App\Recharge\Exceptions\CyclePunch;

use Exception;


class CyclePunchException extends Exception
{
    /**
     * @param string $message
     * @param bool $orderFailed 是否是订单失败 是的话要执行失败操作
     */
    public function __construct(string $message = "",  public bool $orderFailed = false)
    {
        parent::__construct($message);
    }

    /**
     * @return bool
     */
    public function isOrderFailed(): bool
    {
        return $this->orderFailed;
    }
}
